package com.example.webdemo.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;

@Controller
public class WebController {
    @GetMapping("/main")
    public String mainpage() {
        return "main";
    }

    @GetMapping("/login")
    public String loginpage() {
        return "login";
    }

    @GetMapping("/register")
    public String registerpage() {
        return "registration";
    }

    @GetMapping("/product")
    public String productpage() {
        return "product";
    }

    @GetMapping("/customer")
    public String customerpage() {
        return "customer";
    }

    @GetMapping("/orderitems")
    public String orderitemspage() {
        return "orderitems";
    }

    @GetMapping("/usermanage")
    public String usermanagepage() { return "usermanage"; }

    @GetMapping("/base_dict")
    public String base_dictpage() { return "base_dict"; }
}
